﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows;

namespace Sasa.QualityTools.CodeAnalysis.FxCopIntegrator.Tests.Integration.Instruments
{
    public static class WindowExtension
    {
        public static TElement Get<TElement>(this Window extendee, string name)
            where TElement : FrameworkElement
        {
            return extendee.FindName(name) as TElement;
        }
    }
}
